cmake_minimum_required(VERSION 3.10)
project(unix_ipc)

set(CMAKE_CXX_STANDARD 17)

# 主库
add_library(unix_ipc 
    src/client.cpp
    src/server.cpp
)

target_include_directories(unix_ipc PUBLIC include)

# 示例程序
add_executable(ipc_server example/server_main.cpp)
target_link_libraries(ipc_server unix_ipc)

add_executable(ipc_client example/client_main.cpp)
target_link_libraries(ipc_client unix_ipc)
